<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jsp/common/head.jsp"%>
<div class="search">
	<a href="${pageContext.request.contextPath}/role/add">添加角色</a>
</div>
<div class="right">
	<div class="location">
		<strong>你现在所在的位置是:</strong> <span>角色管理页面</span>
	</div>
	<!--账单表格 样式和供应商公用-->
	<table class="providerTable" cellpadding="0" cellspacing="0">
		<tr class="firstTr">
			<th width="10%">角色编码</th>
			<th width="20%">角色名称</th>
			<th width="10%">创建时间</th>
			<th width="30%">操作</th>
		</tr>
		<c:forEach var="role" items="${roleList }" varStatus="status">
			<tr>
				<td><span>${role.roleCode}</span></td>
				<td><span>${role.roleName }</span></td>
				<td><span> <fmt:formatDate value="${role.creationDate}"
							pattern="yyyy-MM-dd" />
				</span></td>
				<td><span><a class="viewRole" href="javascript:;" roleid=${role.id } rolecc=${role.roleCode }><img
							src="${pageContext.request.contextPath }/statics/images/read.png"
							alt="查看" title="查看" /></a></span> 
							<span><a class="modifyRole"
						href="javascript:;" roleid=${role.id } rolecc=${role.roleCode }><img
							src="${pageContext.request.contextPath }/statics/images/xiugai.png"
							alt="修改" title="修改" /></a></span> 
							<span><a class="deleteRole"
						href="javascript:;" roleid=${role.id } rolecc=${role.roleCode }><img
							src="${pageContext.request.contextPath }/statics/images/schu.png"
							alt="删除" title="删除" /></a></span></td>
			</tr>
		</c:forEach>
	</table>
</div>
</section>

<!--点击删除按钮后弹出的页面-->
<div class="zhezhao"></div>
<div class="remove" id="removeBi">
	<div class="removerChid">
		<h2>提示</h2>
		<div class="removeMain">
			<p>你确定要删除该订单吗？</p>
			<a href="#" id="yes">确定</a> <a href="#" id="no">取消</a>
		</div>
	</div>
</div>

<%@include file="/WEB-INF/jsp/common/foot.jsp"%>
<script type="text/javascript" src="${pageContext.request.contextPath }/statics/js/rolelist.js"></script>